const router = require('koa-router')()
const user = require('../controller/user')

router.post('/register',user.register)
router.post('/login',user.login)
router.get('/getUserInfo',user.getUserInfo)
router.get('/getAllUser',user.getAllUser)
router.get('/getAllDoctor',user.getAllDoctor)
router.get('/searchUser',user.searchUser)
router.post('/updUserInfo',user.updUserInfo)

module.exports = router